<% title "Visitors" %>
<%= render :partial => 'breadcrumbs' %>
<table class="admin_listing">
  <tr>
    <th>Name</th>
    <th>Id No</th>
    <th>Organization</th>
    <th>Purpose</th>
    <th>Location</th>
    <th>Person To Meet</th>
    <th>Address</th>
    <th>Check In</th>
    <th>Check Out</th><th></th><th></th><th></th>
  </tr>
  <% for visitor in @visitors %>
    <tr>
      <td><%=h visitor.name %></td>
      <td><%=h visitor.id_no %></td>
      <td><%=h visitor.organization %></td>
      <td><%=h visitor.purpose %></td>
      <td><%=h visitor.location %></td>
      <td><%=h visitor.person_to_meet %></td>
      <td><%=h visitor.address %></td>
      <td><%=h visitor.check_in %></td>
      <td><%=h visitor.check_out %></td>
      <td><%= link_to "Show", visitor %></td>
      <td><%= link_to "Edit", edit_visitor_path(visitor) %></td>
      <td><%= link_to "Destroy", visitor, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>
